package com.mingqijia.gassafety.db.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.mingqijia.gassafety.db.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 文件导出表
 * </p>
 *
 * @author wanghai
 * @since 2022-02-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_gss_file_export")
@ApiModel(value="FileExport对象", description="文件导出表")
public class FileExport extends BaseEntity {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "任务id")
    @TableField("task_id")
    private Long taskId;

    @ApiModelProperty(value = "数据表种类代号")
    @TableField("export_code")
    private String exportCode;

    @ApiModelProperty(value = "任务名称")
    @TableField("export_name")
    private String exportName;

    @ApiModelProperty(value = "文件名称")
    @TableField("file_name")
    private String fileName;

    @ApiModelProperty(value = "数据查询接口地址")
    @TableField("query_url")
    private String queryUrl;

    @ApiModelProperty(value = "数据查询接口需要的header")
    @TableField("query_header")
    private String queryHeader;

    @ApiModelProperty(value = "数据查询接口需要的body")
    @TableField("query_body")
    private String queryBody;

    @ApiModelProperty(value = "任务创建者")
    @TableField("export_creator")
    private String exportCreator;

    @ApiModelProperty(value = "创建者名字")
    @TableField("creator_name")
    private String creatorName;

    @ApiModelProperty(value = "导出状态字典 ongoing-处理中 success-导出成功 fail-导出失败")
    @TableField("export_status")
    private String exportStatus;

    @ApiModelProperty(value = "导出文件的url地址")
    @TableField("export_url")
    private String exportUrl;

    @ApiModelProperty(value = "导出描述，如失败错误描述")
    @TableField("export_desc")
    private String exportDesc;

    @ApiModelProperty(value = "导出备注")
    @TableField("remark")
    private String remark;


}
